package main

import (
	"fmt"
	"runtime"
)

func Print3() {
	for i := 1; i <= 10; i++ {
		fmt.Println("1")
		runtime.Gosched()
	}
}

func Print4() {
	for i := 1; i <= 10; i++ {
		fmt.Println("2")
		runtime.Gosched()
	}
}

func main() {
	fmt.Println("runtime.NumCPU1() : ", runtime.NumCPU())
	go Print3()
	go Print4()
	fmt.Println("runtime.NumCPU2() : ", runtime.NumCPU())
	var s string
	fmt.Scan(&s)
	fmt.Println("runtime.NumGoroutine() : ", runtime.NumGoroutine())
	runtime.Goexit()
}
